#pragma once

// CGniazdo command target

class CFileSenderDoc;

class CGniazdo : public CAsyncSocket
{
public:
	CGniazdo();
	virtual ~CGniazdo();

public:
	CFileSenderDoc *m_pDoc;
	void SetParent(CFileSenderDoc* pDoc);
	
protected:
	virtual void OnAccept(int nErrorCode);
	virtual void OnClose(int nErrorCode);
	virtual void OnConnect(int nErrorCode);
	virtual void OnReceive(int nErrorCode);
	virtual void OnSend(int nErrorCode);
};